package com.zhou.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhou.common.utils.PageUtils;
import com.zhou.gulimall.product.entity.CategoryEntity;
import com.zhou.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Zhouheng
 * @email 87692651@qq.com
 * @date 2022-07-07 13:36:27
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     * 找到catelogID的完整三级路径[一级路径/二级路径/三级路径]
     */
    Long[] findCatelogIds(Long catelogId);

    void updateCascode(CategoryEntity category);

    /**
     * 获取一级分类的category
     * @return
     */
    List<CategoryEntity> getLevel1Category();

    /**
     * 获取二级分类的category
     * @return
     */
    Map<String, List<Catelog2Vo>> getCatalogJson();


    /**
     * 二级菜单拖拽
     */
//    void updateByIdLi(CategoryEntity category);
}

